import { ProtocolComponent } from "@components/Apps/InertialNavigation/InertialNavigationComponent";
import HomeContent from "@components/Apps/Simulation/HomeContent";
import { ClientMessage } from "@runtime/generate/message/ClientMessage";
import MessageHandler from "@runtime/module/Handler/MessageHandler";

export default class VehicleControlInfoMessageHandler extends MessageHandler<ClientMessage.VehicleControlInfoMessage> {
    protected async RunAsync(message: ClientMessage.VehicleControlInfoMessage): Promise<void> {
        // console.log(message,'png返回值++++++++++++++++++++++++++++++++++');
        // HomeContent.Default.BackView.value = message.BackView
        // HomeContent.Default.FrontView.value = message.FrontView
        // HomeContent.Default.LeftView.value = message.LeftView
        // HomeContent.Default.RightView.value = message.RightView
        HomeContent.Default.Speed.value = message.Speed
        HomeContent.Default.Gears.value = message.Gears
    }
}